<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/feedback.css" />
		<link rel="stylesheet" type="text/css" href="../css/setting.css"/>
		<style type="text/css">
			.mui-bar-nav{
				border: none;
				outline: none;
				-webkit-box-shadow:none;
				box-shadow:none;
				border-bottom: 1px solid rgba(0, 0, 0, .1);
			}
		</style>
		
	</head>

	<body>
		<header class="mui-bar mui-bar-nav header" style="background-color: white;">
			<a id="close" class="mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">设置</h1>
		</header>
		<div class="mui-content">
							<ul class="mui-table-view mui-table-view-chevron">
								<li class="mui-table-view-cell" id="modify">
									<a href="#account" class="mui-navigate-right">个人信息</a>
								</li>
							</ul>
							<ul class="mui-table-view mui-table-view-chevron">
								<li class="mui-table-view-cell">
									<span>私聊</span>
									<div class="mui-switch mui-switch-mini mui-active ">
										<div class="mui-switch-handle"></div>
									</div>
								</li>
							</ul>
							<ul class="mui-table-view mui-table-view-chevron">
								<li class="mui-table-view-cell">
									<a href="#about" class="mui-navigate-right">关于小聚 <i class="mui-pull-right update">V 0.8.2</i></a>
								</li>
							</ul>
							<ul class="mui-table-view" style="margin-top: 100px;">
								<li class="mui-table-view-cell" style="text-align: center;" id="exit">
									<a style="color: #EB7A77;">退出登录</a>
								</li>
							</ul>
			</div>
		
		
		<script src="../js/mui.min.js"></script>
		<script src="../js/ip.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			mui.init()
			//退出登陆
			var exit = document.getElementById("exit");
			exit.addEventListener("tap", function() {
				mui.ajax('http://' + ip + '/xiaojv/Api/index.php?p=front&m=exit&a=exit', {
					data: {},
					dataType: 'json', //服务器返回json格式数据
					type: 'post', //HTTP请求类型
					timeout: 10000, //超时时间设置为10秒；           
					success: function(data) {
						mui.toast(data.i);
						mui.openWindow({
							url: '../login.html'
						});
					},
					error: function(xhr, type, errorThrown) {
						//异常处理；
						console.log(type);
					}
				});
			});
			//修改个人信息
			var modify = document.getElementById("modify");
			modify.addEventListener("tap", function() {
				mui.openWindow({
					url: '../modify.html'
				});
			});
			document.querySelector('#close').addEventListener('click',function(){
				var setview = plus.webview.currentWebview();
				setview.close();
			})
		</script>
	</body>

</html>